@using Alexan.PhotoAlbums.Extensions;
@using Orchard.Core.Contents.ViewModels;
@using Orchard.Utility.Extensions;
@using Alexan.PhotoAlbums;

<h1>@Html.TitleForPage(T("Manage Albums").ToString())</h1>

@{
    Script.Require("jQueryContextmenu");    
 }
<div class="manage">
    <a class="add button primaryAction" href="@Url.AlbumCreate(PhotoAlbumTypes.Lightbox)">
        @T("New Lightbox Album")
    </a>
    <a class="add button primaryAction" href="@Url.AlbumCreate(PhotoAlbumTypes.Slideshow)">
        @T("New Slideshow Album")
    </a>
</div>
@if (Model.ContentItems.Items.Count > 0) { 
    using(Html.BeginFormAntiForgeryPost(Url.Action("List", "Admin", new { area = "Contents", id = "" }))) {        
        <fieldset class="contentItems bulk-items">
            @Display(Model.ContentItems)
        </fieldset>
    }
} else {
    <div class="info message">@T("There are no albums for you to see.")</div>
}

@using (Script.Foot())
{
    <script type="text/javascript">
        $(function () {
            $('.remove-album').contextmenu('.remove-album-panel');
        });
    </script>
}